    	<div class="position">当前位置：<a href="<?php echo Yii::app()->createUrl('member/index/index');?>"><?php echo t('Member','web') ?></a> &gt; <a href="<?php echo Yii::app()->createUrl('member/index/orders');?>">帐户管理</a> &gt; 个人资料</div>
        <div class="hr_12"></div>
    	<!--评价管理 start--> 
        <div class="rate_box mt10">
        	<div class="hd c_f"><span class="c_f60 f_r mr10">好评率：<?php echo $credit[0]['total'] ? number_format(($credit[3]['total']*100)/$credit[0]['total'],2) : $credit[0]['total'];?>%</span><span class="fw_b">信用积分：<a class="c_06c" href="javascript:"><?php echo $credit[3]['total'];?></a></span></div>
            <table class="list_table bg_fff" width="100%" cellpadding="0" cellspacing="0">
            	<tr>
                	<th width="20%"></th>
                    <th width="16%">最近1周</th>
                    <th width="16%">最近1个月</th>
                    <th width="16%">最近3个月</th>
                    <th width="16%">3个月前</th>
                    <th width="16%">小计</th>
                </tr>
                <tr>
                	<td><span class="mem_ico rate_good"></span>好评</td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[3]['in_a_week'];?></a></td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[3]['in_a_month'];?></a></td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[3]['in_three_month'];?></a></td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[3]['three_month_before'];?></a></td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[3]['total'];?></a></td>
                </tr>
                <tr>
                	<td><span class="mem_ico rate_normal"></span>中评</td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[2]['in_a_week'];?></a></td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[2]['in_a_month'];?></a></td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[2]['in_three_month'];?></a></td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[2]['three_month_before'];?></a></td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[2]['total'];?></a></td>
                </tr>
                <tr>
                	<td><span class="mem_ico rate_bad"></span>差评</td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[1]['in_a_week'];?></a></td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[1]['in_a_month'];?></a></td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[1]['in_three_month'];?></a></td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[1]['three_month_before'];?></a></td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[1]['total'];?></a></td>
                </tr>
                <tr>
                	<td>总计</td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[0]['in_a_week'];?></a></td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[0]['in_a_month'];?></a></td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[0]['in_three_month'];?></a></td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[0]['three_month_before'];?></a></td>
                    <td><a class="c_06c" href="javascript:"><?php echo $credit[0]['total'];?></a></td>
                </tr>
            </table>
        </div>
    	<!--评价管理 end--> 
        <div class="hr_15"></div>
        <div class="rate_list pub_tab" id="rateTab">
            <div class="tab_hd2">
                <ul class="c_f">
                    <!-- <li><a href="<?php //echo Yii::app()->createUrl('member/index/commenttome');?>">来自商家的评价<b class="mem_bgx left"></b><b class="mem_bgx right"></b></a></li> -->
                    <li class="select"><a href="<?php echo Yii::app()->createUrl('member/index/commentfromme');?>">给他人的评价<b class="mem_bgx left"></b><b class="mem_bgx right"></b></a></li>
                </ul>
            </div>
            <!--给他人的评价  start-->
            <div class="tab_cont2">
                <table class="list_table list_table2" width="100%" cellpadding="0" cellspacing="0">
                    <tr class="bgcolor">
                        <th colspan="2" width="35%" class="rate tl">
						<?php
                            $select = array(0=>'评价',3=>'好评',2=>'中评',1=>'差评');
                            echo CHtml::dropDownList('level',Yii::app()->request->getParam('level',0),$select,array('class'=>'s_ipt','id'=>'changeLevel','onchange'=>"window.location.href='".Yii::app()->createUrl('member/index/commentfromme')."?level='+this.value;"));
                        ?>
                        </th>
                        <!-- <th width="27%">被评商家</th> -->
                        <th width="25%">宝贝信息</th>
                        <th width="13%">操作</th>
                    </tr>
                    <?php foreach($comments as $key=>$comment){?>
                    <tr>
                        <td width="7%"><span class="mem_ico <?php echo $comment['cssClass'];?>"></span></td>
                        <td class="tl"><p> <?php echo $comment['zoc_content']?$comment['zoc_content']:$comment['text'];?></p><span class="c_999">[<?php echo date('Y-m-d H:i:s',$comment['input']);?>]</span></td>
                        <!-- <td>商家：<a class="c_06c" href="<?php //echo Company::createCompanyUrl($comment['zc_sub_domain']);?>" title=""><?php //echo $comment['zc_name'];?></a></td> -->
                        <td class="tl pro"><a class="c_06c d_b" href="<?php echo Yii::app()->createUrl('home/product/detail',array('id'=>$comment['zp_id']));?>" title="<?php echo $comment['zop_title'];?>"><?php echo $comment['zop_title'];?></a><span><em class="c_f60"><?php echo $comment['zop_real_price'];?></em>元 </span></td>
                        <td><a class="mem_btn mem_btn02" href="/member/index/revieworder/commentid/<?php echo $comment['zoc_id'];?>" title="">修改</a></td>
                    </tr>
                    <?php }?>
                    <tr class="foot">
                        <td colspan="5">
                            <div class="list_page">
								<?php
                                $this->widget('CLinkPager',array(    
                                    'header'=>'',    
                                    'firstPageLabel' => '首页',    
                                    'lastPageLabel' => '尾页',    
                                    'prevPageLabel' => '上一页',    
                                    'nextPageLabel' => '下一页',    
                                    'pages' => $pager,    
                                    'maxButtonCount'=>13    
                                    )    
                                );    
                                ?>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
            <!--给他人的评价  end-->